package com.sz.model;

import org.springframework.data.annotation.Id;
import tk.mybatis.mapper.annotation.KeySql;

public class OnlineBank {
    public OnlineBank() {
    }

    public OnlineBank(Integer obId, String obUname, String obUpwd, Long obBalance, String idcard, String idtype, String name, String phone) {
        this.obId = obId;
        this.obUname = obUname;
        this.obUpwd = obUpwd;
        this.obBalance = obBalance;
        this.idcard = idcard;
        this.idtype = idtype;
        this.name = name;
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "OnlineBank{" +
                "obId=" + obId +
                ", obUname='" + obUname + '\'' +
                ", obUpwd='" + obUpwd + '\'' +
                ", obBalance=" + obBalance +
                ", idcard='" + idcard + '\'' +
                ", idtype='" + idtype + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.ob_id
     *
     * @mbggenerated
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer obId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.ob_uname
     *
     * @mbggenerated
     */
    private String obUname;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.ob_upwd
     *
     * @mbggenerated
     */
    private String obUpwd;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.ob_balance
     *
     * @mbggenerated
     */
    private Long obBalance;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.idcard
     *
     * @mbggenerated
     */
    private String idcard;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.idtype
     *
     * @mbggenerated
     */
    private String idtype;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.name
     *
     * @mbggenerated
     */
    private String name;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column online_bank.phone
     *
     * @mbggenerated
     */
    private String phone;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.ob_id
     *
     * @return the value of online_bank.ob_id
     *
     * @mbggenerated
     */
    public Integer getObId() {
        return obId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.ob_id
     *
     * @param obId the value for online_bank.ob_id
     *
     * @mbggenerated
     */
    public void setObId(Integer obId) {
        this.obId = obId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.ob_uname
     *
     * @return the value of online_bank.ob_uname
     *
     * @mbggenerated
     */
    public String getObUname() {
        return obUname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.ob_uname
     *
     * @param obUname the value for online_bank.ob_uname
     *
     * @mbggenerated
     */
    public void setObUname(String obUname) {
        this.obUname = obUname == null ? null : obUname.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.ob_upwd
     *
     * @return the value of online_bank.ob_upwd
     *
     * @mbggenerated
     */
    public String getObUpwd() {
        return obUpwd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.ob_upwd
     *
     * @param obUpwd the value for online_bank.ob_upwd
     *
     * @mbggenerated
     */
    public void setObUpwd(String obUpwd) {
        this.obUpwd = obUpwd == null ? null : obUpwd.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.ob_balance
     *
     * @return the value of online_bank.ob_balance
     *
     * @mbggenerated
     */
    public Long getObBalance() {
        return obBalance;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.ob_balance
     *
     * @param obBalance the value for online_bank.ob_balance
     *
     * @mbggenerated
     */
    public void setObBalance(Long obBalance) {
        this.obBalance = obBalance;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.idcard
     *
     * @return the value of online_bank.idcard
     *
     * @mbggenerated
     */
    public String getIdcard() {
        return idcard;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.idcard
     *
     * @param idcard the value for online_bank.idcard
     *
     * @mbggenerated
     */
    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.idtype
     *
     * @return the value of online_bank.idtype
     *
     * @mbggenerated
     */
    public String getIdtype() {
        return idtype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.idtype
     *
     * @param idtype the value for online_bank.idtype
     *
     * @mbggenerated
     */
    public void setIdtype(String idtype) {
        this.idtype = idtype == null ? null : idtype.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.name
     *
     * @return the value of online_bank.name
     *
     * @mbggenerated
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.name
     *
     * @param name the value for online_bank.name
     *
     * @mbggenerated
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column online_bank.phone
     *
     * @return the value of online_bank.phone
     *
     * @mbggenerated
     */
    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column online_bank.phone
     *
     * @param phone the value for online_bank.phone
     *
     * @mbggenerated
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }
}